package dataStructure.chapter02_动态数组.part4泛型数组缩容;

/**
 * @author https://gitee.com/W_Jun
 * @date 2022-01-23 18:37
 * @Description 缩容的测试
 */
public class MyArrayListTest {
    public static void main(String[] args) {
        MyArrayList<Integer> arr = new MyArrayList<>();
        for (int i = 0; i < 30; i++) {
            arr.add(i);
        }
        System.out.println(arr);
        for (int i = 0; i < 20; i++) {
            arr.remove(0);
        }
        System.out.println(arr);
    }
}
